package me.chanjar.weixin.cp.tp.service;

import java.io.File;

import me.chanjar.weixin.common.bean.result.WxMediaUploadResult;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.cp.bean.WxCpTpContactSearch;
import me.chanjar.weixin.cp.bean.WxCpTpContactSearchResp;
import me.chanjar.weixin.cp.bean.WxCpTpIdTranslate;
import me.chanjar.weixin.cp.bean.WxCpTpIdTranslateResp;
import me.chanjar.weixin.cp.bean.WxCpTpIdTranslateResultResp;

/**
 * @author uianz
 * @description
 * @since 2020/12/23 下午 02:39
 */
public interface WxCpTpContactService {

    /**
     * https://work.weixin.qq.com/api/doc/90001/90143/91844
     * 通讯录单个搜索
     * @param wxCpTpContactSearch
     * @return
     * @throws WxErrorException
     */
	WxCpTpContactSearchResp contactSearch(WxCpTpContactSearch wxCpTpContactSearch) throws WxErrorException;

	/**
	   * 提交通讯录id转译
	   * */
	WxCpTpIdTranslateResp idTranslate(WxCpTpIdTranslate wxCpTpIdTranslate) throws WxErrorException;

	/**
	   * 获取异步任务结果
	   * */
	WxCpTpIdTranslateResultResp getBatchResult(String jobId) throws WxErrorException;

	/**
	   * 上传转译媒体文件
	   * */
	WxMediaUploadResult upload(String mediaType, File file) throws WxErrorException;
}
